package com.ecoolex.chinadutyfree.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import org.springframework.lang.NonNull;

/**
 *
 *   直邮订单数据增量统计表<br>
 *<br>
 * 数据表： direct_mail_goods_order_increment_data
 *
 */
@Description({"直邮订单数据增量统计表"})
public class DirectMailGoodsOrderIncrementData implements Serializable {
    /**
     *
     *   主键    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.Id
     */
    @Description({"主键", "不能为空", "数据长度: 10"})
    @NonNull
    private Integer id;

    /**
     *
     *   新增的总订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewTotalNumber
     */
    @Description({"新增的总订单数量", "数据长度: 10"})
    private Integer newTotalNumber;

    /**
     *
     *   新增的已支付的订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewPaidNumber
     */
    @Description({"新增的已支付的订单数量", "数据长度: 10"})
    private Integer newPaidNumber;

    /**
     *
     *   新增的确认收货状态的订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewConfirmNumber
     */
    @Description({"新增的确认收货状态的订单数量", "数据长度: 10"})
    private Integer newConfirmNumber;

    /**
     *
     *   新增售后订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAfterSalesNumber
     */
    @Description({"新增售后订单数量", "数据长度: 10"})
    private Integer newAfterSalesNumber;

    /**
     *
     *   新增关闭订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewCloseNumber
     */
    @Description({"新增关闭订单数量", "数据长度: 10"})
    private Integer newCloseNumber;

    /**
     *
     *   新增的成交订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessNumber
     */
    @Description({"新增的成交订单数量", "数据长度: 10"})
    private Integer newSuccessNumber;

    /**
     *
     *   新增的总订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewTotalPrice
     */
    @Description({"新增的总订单金额", "数据长度: 18"})
    private BigDecimal newTotalPrice;

    /**
     *
     *   新增的已支付状态的订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewPaidPrice
     */
    @Description({"新增的已支付状态的订单金额", "数据长度: 18"})
    private BigDecimal newPaidPrice;

    /**
     *
     *   新增的确认收货状态的订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewConfirmPrice
     */
    @Description({"新增的确认收货状态的订单金额", "数据长度: 18"})
    private BigDecimal newConfirmPrice;

    /**
     *
     *   新增售后订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAfterSalesPrice
     */
    @Description({"新增售后订单金额", "数据长度: 18"})
    private BigDecimal newAfterSalesPrice;

    /**
     *
     *   新增关闭订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewClosePrice
     */
    @Description({"新增关闭订单金额", "数据长度: 18"})
    private BigDecimal newClosePrice;

    /**
     *
     *   新增的成交订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessPrice
     */
    @Description({"新增的成交订单金额", "数据长度: 18"})
    private BigDecimal newSuccessPrice;

    /**
     *
     *   新增的成交订单平均金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAvgSuccessPrice
     */
    @Description({"新增的成交订单平均金额", "数据长度: 18"})
    private BigDecimal newAvgSuccessPrice;

    /**
     *
     *   新增的已支付订单用户数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewPaidUserNumber
     */
    @Description({"新增的已支付订单用户数量", "数据长度: 10"})
    private Integer newPaidUserNumber;

    /**
     *
     *   新增的确认收货订单用户数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewConfirmUserNumber
     */
    @Description({"新增的确认收货订单用户数量", "数据长度: 10"})
    private Integer newConfirmUserNumber;

    /**
     *
     *   新增的成功状态订单下用户的数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessUserNumber
     */
    @Description({"新增的成功状态订单下用户的数量", "数据长度: 10"})
    private Integer newSuccessUserNumber;

    /**
     *
     *   新增订单客单价    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAvgCustomerPrice
     */
    @Description({"新增订单客单价", "数据长度: 18"})
    private BigDecimal newAvgCustomerPrice;

    /**
     *
     *   新增成功订单占总订单百分比    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessPercent
     */
    @Description({"新增成功订单占总订单百分比", "数据长度: 50"})
    private String newSuccessPercent;

    /**
     *
     *   记录时间    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.RecordTime
     */
    @Description({"记录时间", "不能为空", "数据长度: 26"})
    @NonNull
    private Date recordTime;

    public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value();

    public static final Boolean IS_DELETED = Deleted.IS_DELETED.value();

    /**
     *
     *   逻辑删除    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.Deleted
     */
    @Description({"逻辑删除", "不能为空", "数据长度: 1"})
    @NonNull
    private Boolean deleted;

    /**
     *
     *   创建用户    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.CreateUser
     */
    @Description({"创建用户", "不能为空", "数据长度: 50"})
    @NonNull
    private String createUser;

    /**
     *
     *   创建时间    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.CreateTime
     */
    @Description({"创建时间", "不能为空", "数据长度: 26"})
    @NonNull
    private Date createTime;

    /**
     *
     *   修改用户    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.UpdateUser
     */
    @Description({"修改用户", "不能为空", "数据长度: 50"})
    @NonNull
    private String updateUser;

    /**
     *
     *   修改时间    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.UpdateTime
     */
    @Description({"修改时间", "不能为空", "数据长度: 26"})
    @NonNull
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    /**
     * 获取参数<br><br>
     *
     *   主键    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.Id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置参数<br><br>
     *
     *   主键<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.Id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的总订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewTotalNumber
     */
    public Integer getNewTotalNumber() {
        return newTotalNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的总订单数量<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewTotalNumber
     */
    public void setNewTotalNumber(Integer newTotalNumber) {
        this.newTotalNumber = newTotalNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的已支付的订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewPaidNumber
     */
    public Integer getNewPaidNumber() {
        return newPaidNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的已支付的订单数量<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewPaidNumber
     */
    public void setNewPaidNumber(Integer newPaidNumber) {
        this.newPaidNumber = newPaidNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的确认收货状态的订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewConfirmNumber
     */
    public Integer getNewConfirmNumber() {
        return newConfirmNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的确认收货状态的订单数量<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewConfirmNumber
     */
    public void setNewConfirmNumber(Integer newConfirmNumber) {
        this.newConfirmNumber = newConfirmNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增售后订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAfterSalesNumber
     */
    public Integer getNewAfterSalesNumber() {
        return newAfterSalesNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增售后订单数量<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAfterSalesNumber
     */
    public void setNewAfterSalesNumber(Integer newAfterSalesNumber) {
        this.newAfterSalesNumber = newAfterSalesNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增关闭订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewCloseNumber
     */
    public Integer getNewCloseNumber() {
        return newCloseNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增关闭订单数量<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewCloseNumber
     */
    public void setNewCloseNumber(Integer newCloseNumber) {
        this.newCloseNumber = newCloseNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的成交订单数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessNumber
     */
    public Integer getNewSuccessNumber() {
        return newSuccessNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的成交订单数量<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessNumber
     */
    public void setNewSuccessNumber(Integer newSuccessNumber) {
        this.newSuccessNumber = newSuccessNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的总订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewTotalPrice
     */
    public BigDecimal getNewTotalPrice() {
        return newTotalPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的总订单金额<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewTotalPrice
     */
    public void setNewTotalPrice(BigDecimal newTotalPrice) {
        this.newTotalPrice = newTotalPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的已支付状态的订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewPaidPrice
     */
    public BigDecimal getNewPaidPrice() {
        return newPaidPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的已支付状态的订单金额<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewPaidPrice
     */
    public void setNewPaidPrice(BigDecimal newPaidPrice) {
        this.newPaidPrice = newPaidPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的确认收货状态的订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewConfirmPrice
     */
    public BigDecimal getNewConfirmPrice() {
        return newConfirmPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的确认收货状态的订单金额<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewConfirmPrice
     */
    public void setNewConfirmPrice(BigDecimal newConfirmPrice) {
        this.newConfirmPrice = newConfirmPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增售后订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAfterSalesPrice
     */
    public BigDecimal getNewAfterSalesPrice() {
        return newAfterSalesPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增售后订单金额<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAfterSalesPrice
     */
    public void setNewAfterSalesPrice(BigDecimal newAfterSalesPrice) {
        this.newAfterSalesPrice = newAfterSalesPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增关闭订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewClosePrice
     */
    public BigDecimal getNewClosePrice() {
        return newClosePrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增关闭订单金额<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewClosePrice
     */
    public void setNewClosePrice(BigDecimal newClosePrice) {
        this.newClosePrice = newClosePrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的成交订单金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessPrice
     */
    public BigDecimal getNewSuccessPrice() {
        return newSuccessPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的成交订单金额<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessPrice
     */
    public void setNewSuccessPrice(BigDecimal newSuccessPrice) {
        this.newSuccessPrice = newSuccessPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的成交订单平均金额    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAvgSuccessPrice
     */
    public BigDecimal getNewAvgSuccessPrice() {
        return newAvgSuccessPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的成交订单平均金额<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAvgSuccessPrice
     */
    public void setNewAvgSuccessPrice(BigDecimal newAvgSuccessPrice) {
        this.newAvgSuccessPrice = newAvgSuccessPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的已支付订单用户数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewPaidUserNumber
     */
    public Integer getNewPaidUserNumber() {
        return newPaidUserNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的已支付订单用户数量<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewPaidUserNumber
     */
    public void setNewPaidUserNumber(Integer newPaidUserNumber) {
        this.newPaidUserNumber = newPaidUserNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的确认收货订单用户数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewConfirmUserNumber
     */
    public Integer getNewConfirmUserNumber() {
        return newConfirmUserNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的确认收货订单用户数量<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewConfirmUserNumber
     */
    public void setNewConfirmUserNumber(Integer newConfirmUserNumber) {
        this.newConfirmUserNumber = newConfirmUserNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增的成功状态订单下用户的数量    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessUserNumber
     */
    public Integer getNewSuccessUserNumber() {
        return newSuccessUserNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增的成功状态订单下用户的数量<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessUserNumber
     */
    public void setNewSuccessUserNumber(Integer newSuccessUserNumber) {
        this.newSuccessUserNumber = newSuccessUserNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增订单客单价    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAvgCustomerPrice
     */
    public BigDecimal getNewAvgCustomerPrice() {
        return newAvgCustomerPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增订单客单价<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewAvgCustomerPrice
     */
    public void setNewAvgCustomerPrice(BigDecimal newAvgCustomerPrice) {
        this.newAvgCustomerPrice = newAvgCustomerPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   新增成功订单占总订单百分比    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessPercent
     */
    public String getNewSuccessPercent() {
        return newSuccessPercent;
    }

    /**
     * 设置参数<br><br>
     *
     *   新增成功订单占总订单百分比<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.NewSuccessPercent
     */
    public void setNewSuccessPercent(String newSuccessPercent) {
        this.newSuccessPercent = newSuccessPercent == null ? null : newSuccessPercent.trim();
    }

    /**
     * 获取参数<br><br>
     *
     *   记录时间    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.RecordTime
     */
    public Date getRecordTime() {
        return recordTime;
    }

    /**
     * 设置参数<br><br>
     *
     *   记录时间<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.RecordTime
     */
    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

    public void andLogicalDeleted(boolean deleted) {
        setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());
    }

    /**
     * 获取参数<br><br>
     *
     *   逻辑删除    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.Deleted
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * 设置参数<br><br>
     *
     *   逻辑删除<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.Deleted
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    /**
     * 获取参数<br><br>
     *
     *   创建用户    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.CreateUser
     */
    public String getCreateUser() {
        return createUser;
    }

    /**
     * 设置参数<br><br>
     *
     *   创建用户<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.CreateUser
     */
    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    /**
     * 获取参数<br><br>
     *
     *   创建时间    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.CreateTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置参数<br><br>
     *
     *   创建时间<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.CreateTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取参数<br><br>
     *
     *   修改用户    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.UpdateUser
     */
    public String getUpdateUser() {
        return updateUser;
    }

    /**
     * 设置参数<br><br>
     *
     *   修改用户<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.UpdateUser
     */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    /**
     * 获取参数<br><br>
     *
     *   修改时间    <br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.UpdateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置参数<br><br>
     *
     *   修改时间<br>
     *<br>
     * 字段名： direct_mail_goods_order_increment_data.UpdateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public enum Deleted {
        NOT_DELETED(new Boolean("false"), "未删除"),
        IS_DELETED(new Boolean("true"), "已删除");

        private final Boolean value;

        private final String name;

        Deleted(Boolean value, String name) {
            this.value = value;
            this.name = name;
        }

        public Boolean getValue() {
            return this.value;
        }

        public Boolean value() {
            return this.value;
        }

        public String getName() {
            return this.name;
        }
    }

    public enum Column {
        id("Id", "id", "INTEGER", false),
        newTotalNumber("NewTotalNumber", "newTotalNumber", "INTEGER", false),
        newPaidNumber("NewPaidNumber", "newPaidNumber", "INTEGER", false),
        newConfirmNumber("NewConfirmNumber", "newConfirmNumber", "INTEGER", false),
        newAfterSalesNumber("NewAfterSalesNumber", "newAfterSalesNumber", "INTEGER", false),
        newCloseNumber("NewCloseNumber", "newCloseNumber", "INTEGER", false),
        newSuccessNumber("NewSuccessNumber", "newSuccessNumber", "INTEGER", false),
        newTotalPrice("NewTotalPrice", "newTotalPrice", "DECIMAL", false),
        newPaidPrice("NewPaidPrice", "newPaidPrice", "DECIMAL", false),
        newConfirmPrice("NewConfirmPrice", "newConfirmPrice", "DECIMAL", false),
        newAfterSalesPrice("NewAfterSalesPrice", "newAfterSalesPrice", "DECIMAL", false),
        newClosePrice("NewClosePrice", "newClosePrice", "DECIMAL", false),
        newSuccessPrice("NewSuccessPrice", "newSuccessPrice", "DECIMAL", false),
        newAvgSuccessPrice("NewAvgSuccessPrice", "newAvgSuccessPrice", "DECIMAL", false),
        newPaidUserNumber("NewPaidUserNumber", "newPaidUserNumber", "INTEGER", false),
        newConfirmUserNumber("NewConfirmUserNumber", "newConfirmUserNumber", "INTEGER", false),
        newSuccessUserNumber("NewSuccessUserNumber", "newSuccessUserNumber", "INTEGER", false),
        newAvgCustomerPrice("NewAvgCustomerPrice", "newAvgCustomerPrice", "DECIMAL", false),
        newSuccessPercent("NewSuccessPercent", "newSuccessPercent", "VARCHAR", false),
        recordTime("RecordTime", "recordTime", "TIMESTAMP", false),
        deleted("Deleted", "deleted", "BIT", false),
        createUser("CreateUser", "createUser", "VARCHAR", true),
        createTime("CreateTime", "createTime", "TIMESTAMP", false),
        updateUser("UpdateUser", "updateUser", "VARCHAR", false),
        updateTime("UpdateTime", "updateTime", "TIMESTAMP", false);

        private static final String BEGINNING_DELIMITER = "`";

        private static final String ENDING_DELIMITER = "`";

        private final String column;

        private final boolean isColumnNameDelimited;

        private final String javaProperty;

        private final String jdbcType;

        public String value() {
            return this.column;
        }

        public String getValue() {
            return this.column;
        }

        public String getJavaProperty() {
            return this.javaProperty;
        }

        public String getJdbcType() {
            return this.jdbcType;
        }

        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
            this.isColumnNameDelimited = isColumnNameDelimited;
        }

        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

        public String asc() {
            return this.getEscapedColumnName() + " ASC";
        }

        public static Column[] excludes(Column ... excludes) {
            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
            if (excludes != null && excludes.length > 0) {
                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
            }
            return columns.toArray(new Column[]{});
        }

        public String getEscapedColumnName() {
            if (this.isColumnNameDelimited) {
                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
            } else {
                return this.column;
            }
        }
    }
}